a = []
def draw_triangle(n, x, y): 
	if (n==1):
		a[x][y+1] = '/'
		a[x][y+2] = '\\'
		a[x+1][y] = '/'
		a[x+1][y+1] = '_'
		a[x+1][y+2] = '_'
		a[x+1][y+3] = '\\'
	else:
		draw_triangle(n-1, x + (1<<(n-1)), y +0); 
		draw_triangle(n-1, x + 0,          y + (1<<(n-1))); 
		draw_triangle(n-1, x + (1<<(n-1)), y + (1<<n)); 

def main(): 
	n = int(raw_input())
	line = 2*(1<<n)
	col = 2*line
	for i in range(line): 
		b = []
		for j in range(col): 
			b.append(' ')
		a.append(b)
	draw_triangle(n, 0, 0)
	for i in range(line): 
		s = ''
		for j in range(col): 
			s += a[i][j]
		print s

if __name__=="__main__":
	main()
